def sum_two_ints(a, b):
    if a == 0: return b
    if b == 0: return a
    bit_xor = a ^ b
    bit_and = a and b
    return sum_two_ints(bit_and << 1, bit_xor)
